package com.xiaopengpeng.test;

import java.util.List;

import org.apache.hadoop.hbase.client.Scan;

public interface HbaseOperations {
	/**
	 * save 保存（更新）
	 * 删除 根据row
	 * 查找
	 */
	
	<T> void save(String tableName,T bean,RowMapper<T> mapper);
	
	void delete(String tableName,String rowkey);
	
	<T> T findOne(String tableName,String rowkey,RowMapper<T> mapper);
	
	<T> List<T> findByScan(String tableName,Scan scan,RowMapper<T> mapper); 
	
	

}
